We also want to apply this threshold when overshooting to the left, not
only to the right.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4774
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2581>
const [gridWidth, gridHeight] = this.get_transformed_size();
const vertical = this._orientation === Clutter.Orientation.VERTICAL;
- const gridStart = vertical ? gridY : gridX;
+ const gridStart = vertical ?
+ ? gridY + DRAG_OVERSHOOT_THRESHOLD
+ : gridX + DRAG_OVERSHOOT_THRESHOLD;
const gridEnd = vertical
? gridY + gridHeight - OVERSHOOT_THRESHOLD
: gridX + gridWidth - OVERSHOOT_THRESHOLD;